@extends('admin.index.layout')

@section('title',$title)

@section('content')

<!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                用户管理
                <small>添加</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 主页</a></li>
                <li><a href="#">用户管理</a></li>
                <li class="active">添加</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">快速添加用户</h3>
                        </div><!-- /.box-header -->
                        <!-- form start -->
                        <form role="form" action="{{url('/admin/user/update?id=')}}{{$row['0']->id}}" method="post" enctype="multipart/form-data">
                            <div class="box-body">
                                
                                {{ csrf_field() }}
                                <div class="form-group">
                                    <label for="exampleInputPinkName1">昵称</label>
                                    <input  name="nickname" type="text" class="form-control" id="exampleInputnickName"
                                           value="{{$row['0'] -> nickname}}">
                                </div>
                                
                                <div class="form-group">
                                    <label for="exampleInputEmail1">邮箱</label>
                                    <input  name="email" type="email" class="form-control" id="exampleInputEmail1"
                                           value="{{$row[0] -> email}}">
                                </div>
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputFile">头像</label>
                                    <input name="pic" type="file" id="exampleInputFile">
                                    <p class="help-block">请上传头像</p>
                                </div>
                                
                            </div><!-- /.box-body -->

                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">确认修改</button>
                            </div>
                        </form>
                    </div><!-- /.box -->

        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
    
@endsection
